package study;

//XXXable
interface Work {
    void work();
}

class Emplouee implements Work {
    public void work() {
        System.out.println("Emloyee is working.");
    }
}

class Student implements Work {
    public void work() {
        System.out.println("Students are studying.");
    }
}

public class interfaceDemo {
    public static void main(String[] args) {
        Work[] persons = {new Emplouee(), new Student()};
        for (Work person : persons) {
            person.work();
        }
    }
}
